<?php

require dirname(__FILE__).'/../../../bootstrap/Doctrine.php';

$t = new lime_test(2);
$table = Doctrine_Core::getTable('BlogBookmark');

$t->diag('->getLastPublishedLinks()');
$links = $table->getLastPublishedLinks(3);

$t->is(count($links), 3, '->getLastPublishedLinks() returns the last 3 links');
$t->is($links[0]->getCreatedAt(), '2010-06-23 14:00:00', '->getLastPublishedLinks() returns the expected links');